<template>
  <h1>EL-选择器组件</h1>
  <el-select placeholder="请做出选择" style="width: 30%" v-model="choice">
<el-option label="选择1" value="1"></el-option>
    <el-option label="选择2" value="2"></el-option>
    <el-option label="选择3" value="3"></el-option>
    <el-option label="选择4" value="4"></el-option>
  </el-select>
  <h3>您做出的选择为:{{choice}}</h3>
</template>

<script setup>
import {ref} from "vue";

const choice = ref('');// 空字符串中可以添加对应的value值作为默认值
</script>

<style scoped>

</style>